using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MES_workbench.Domian.Customers
{
    public class WorkOrder
    {
        /// <summary>
        /// 主键ID - 自增主键, 唯一标识每条记录
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int WorkOrderId { get; set; }
        /// <summary>
        /// 工单编号 (主键)
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public string WorkOrderNo { get; set; } = string.Empty;

        /// <summary>
        /// 工单状态
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public string Status { get; set; } = string.Empty;

        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(ColumnName = "ProductCode")]
        public string ProductCode { get; set; } = string.Empty;

        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(ColumnName = "ProductName")]
        public string ProductName { get; set; } = string.Empty;

        /// <summary>
        /// 产品规格
        /// </summary>
        [SugarColumn(ColumnName = "ProductSpec")]
        public string ProductSpec { get; set; } = string.Empty;

        /// <summary>
        /// 计划数量
        /// </summary>
        [SugarColumn(ColumnName = "PlanQuantity")]
        public int PlanQuantity { get; set; }

        /// <summary>
        /// 实际完成数量（累计）
        /// </summary>
        [SugarColumn(ColumnName = "ActualQuantity")]
        public int ActualQuantity { get; set; }
    }
}
